home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 February
/
CMCD0205.ISO
/
Software
/
Freeware
/
Programare
/
bluej
/
bluejsetup-203.exe
/
{app}
/
lib
/
spanish
/
templates
/
newclass
/
stdclass.tmpl
< prev
next >
Wrap
Text File
|
2004-12-19
|
616b
|
34 lines
$PKGLINE
/**
* Write a description of class $CLASSNAME here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class $CLASSNAME
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class $CLASSNAME
*/
public $CLASSNAME()
{
// initialise instance variables
x = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
// put your code here
return x + y;
}
}